﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Select_Pic.aspx.cs" Inherits="webnew.Systems.Select_Pic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>选择图标</title>
    <script src="/Js/jquery.js" type="text/javascript"></script>
    <script>
        $(document).ready(function() {
            var rows = 6, cells = 10;
            var num = 0;
            var strhtml = "";
            for (var i = 0; i < rows; i++) {
                
                strhtml += "<tr align='center' valign='middle'>";
                for (var j = 0; j < cells; j++) {
                    strhtml += '<td bgcolor="#ffffff" style="cursor: hand;" onmouseover="over(this);" onmouseout="out(this);">';
                    strhtml += '<img src="../App_Themes/Images/Icon/' + num + '.gif" onclick="selface(' + num + ')" width="16" height="16" alt="请选择.." /></td>';
                    num++;                   
                }
                strhtml += "</tr>";
            }          
            $("#selctPic").html(strhtml);
        });
    </script>
</head>
<body topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" bgcolor="#DAEEF4">
    <form name="Form1" method="post"id="Form1">
    <div>      
        <table  id="selctPic"  border="0" cellpadding="2" cellspacing="1" bgcolor="#ccc">
             
        </table>
    </div>
    </form>
</body>
</html>

<script type="text/javascript" language="javascript">
    function over(obj) {      
        obj.style.background = "#CCCCCC";
    }

    function out(obj) {
        obj.style.background = "#FFFFFF";
    }
    function selface(obj) {
        self.parent.tb_remove();
        parent.ChagePic(obj);      
    }
</script>
